package com.vietnam.power.dao;

import java.util.List;

import com.vietnam.power.domain.MessageSearchCriteria;
import com.vietnam.power.persitence.EmailNotification;
import com.vietnam.power.persitence.MessageInfo;
import com.vietnam.power.persitence.MessageTypeDictionary;

public interface MessageDao {
	public MessageInfo getMessageById(int id);

	public void createMessage(MessageInfo mi);

	public List<MessageInfo> searchMessages(MessageSearchCriteria tsc);

	public void updateMessage(MessageInfo mi);
	
	public void deleteMessage(MessageInfo mi);
	
	public MessageTypeDictionary getMessageTypeDictionary(String name);
	
	public List<EmailNotification> getScheduledMessages();

	public void updateEmailNotification(EmailNotification emailNotification);
}
